<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Primeira JSP</title>
</head>
<body>
<h1>Primeira JSP </h1>

 Data = <%= request.getAttribute("dataFormatada") %>
 
 <br/>
 <br/>
 <% String paramURL = request.getParameter("param");   %>
 
 Parametro = <%=paramURL %>
 
 <%! int var = 0; %>
 
 <br/>
 
 Valor Atual = <%=var %>
 
 <br/>
 <% var += Integer.parseInt(paramURL); %>
 
 Valor Novo = <%=var %>
 
 
</body>
</html>